﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SampleProject
{
    public static class ForEachStatementTest
    {
        private static readonly string[] Data = new[] { "String1", "String2", "String3" };
        private static readonly IEnumerable<string> TheData = Data;

        public static void DoTest()
        {
            Console.WriteLine("Before list:");
            foreach (var xItem in TheData)
            {
                Console.WriteLine(xItem);
            }
            Console.WriteLine("After List.");
        }
    }
}
